<div class="modal-content">
  <div class="modal-header">
    <button type="button" class="close" ng-click="cancel()" aria-label="Close">
      <em class="ion-ios-close-empty sn-link-close"></em>
    </button>
    <h4 class="modal-title" id="modal-title">设置视频</h4>
  </div>
  <div class="modal-body" id="modal-body">

  <div class="row">
    <div class="col-sm-12">
        <form class="form-horizontal" name="uploadVideoForm" id="uploadVideoForm" angular-validator angular-validator-submit="ok()" novalidate >

          <div class="form-group" ng-class="{'has-error' : validateFlag && !formData.title}">
            <label class="col-sm-3 control-label">标题</label>
            <div class="col-sm-8">
              <input type="text" ng-model="formData.title" class="form-control"
                     name="title" placeholder="输入标题" maxlength="{{inputLenght}}"
                     required-message="'*请输入标题..'"
                     required>
              <p class="text-right" ng-style="formData.title.length >= (inputLenght-3) ? {color:'red' } : { }">还剩{{ inputLenght - formData.title.length + ' 字' }}</p>
            </div>
          </div>

          <div class="form-group" ng-class="{'has-error' : validateFlag && !formData.desc}">
            <label class="col-sm-3 control-label">视频描述</label>
            <div class="col-sm-8">
              <textarea type="text" ng-model="formData.desc" class="form-control"
                     name="desc" placeholder="输入视频描述" maxlength="{{descInputLenght}}"
                     required-message="'*请输入视频描述..'" required></textarea>
              <p class="text-right" ng-style="formData.desc.length >= (descInputLenght-3) ? {color:'red' } : { }">还剩{{ descInputLenght - formData.desc.length + ' 字' }}</p>
            </div>
          </div>

          <div class="form-group" ng-class="{'has-error' : validateFlag && !videoSurfaceImgObject.uploadImgUrl}">
            <label class="col-sm-3 control-label">视频封面图</label>
            <div class="col-sm-6">
              <image-upload-new id="videoSurface" img-object="videoSurfaceImgObject">
              </image-upload-new>
              <span class="help-block error-block basic-block" style="color: indianred">*请上传视频封面图</span>
              <span style="color: lightgrey">上传视频封面图({{videoSurfaceImgObject.cropWidth + '*' + videoSurfaceImgObject.cropHeight}})</span>
            </div>
          </div>


          <div class="form-group">
            <div class="col-sm-12 text-center">
              <button type="submit" class="btn btn-primary" ng-click="validate()">保&nbsp;&nbsp;&nbsp;&nbsp;存</button>
              <button type="button" class="btn btn-warning" style="margin-left: 20px" ng-click="cancel()">返&nbsp;&nbsp;&nbsp;&nbsp;回</button>
            </div>
          </div>
        </form>
    </div>
  </div>
  </div>
  <div class="modal-footer">
    &nbsp;
  </div>
</div>

